//
//  StatusNormalCell.swift
//  SynWeibo
//
//  Created by 沈艳男 on 15/9/14.
//  Copyright © 2015年 沈艳男. All rights reserved.
//

import UIKit

class StatusNormalCell: StatusCell {

    override func setUI() {
        // 4、配图布局
        let cons = pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: contentLabel, size: CGSize(width: StatusPictureMaxWidth, height: StatusPictureMaxWidth), offset: CGPoint(x: 0, y: StatusPictureItemMargin))
        // 记录配图试图的约束
        // 从自动布局返回的数组中取出配图的高度
        pictureViewWidthCons = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Width)
        pictureViewHeightCons = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Height)
        pictureViewTopCons = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Top)
    }

}
